/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.entity;

import org.joda.time.DateTime;

import java.io.Serializable;

/**
 * 在这里编写类的功能描述
 *
 * @author fangwenhao
 * @created 2018/3/14
 */
public class NoticeVO implements Serializable{

    private Long notice_id;

    private String title;

    private String pic;

    private String time;

    public NoticeVO(){}

    public NoticeVO(Notice notice){
        this.notice_id = notice.getId();
        this.title = notice.getTitle();
        this.pic = notice.getUrl();
        this.time = new DateTime(notice.getBeginTime()).toString("yyyy-MM-dd");
    }

    public Long getNotice_id() {
        return notice_id;
    }

    public void setNotice_id(Long notice_id) {
        this.notice_id = notice_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
